package cn.com.blueInfo.bpm.number.entity;

import cn.com.blueInfo.bpm.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 编号规则日志表
 * @author suxch
 * @since 2025-08-24 01:39:05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_bsn_number_log", autoResultMap = true)
@Schema(description = "编号规则日志表")
public class NumberLog extends BaseEntity {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 规则主表ID */
    @Schema(description = "规则主表ID")
    private Long ruleId;
    /** 生成的编号 */
    @Schema(description = "生成的编号")
    private String generatedNum;
    /** 业务类型（与规则表biz_type一致） */
    @Schema(description = "业务类型（与规则表biz_type一致）")
    private String bizType;
    /** 业务ID */
    @Schema(description = "业务ID")
    private Long bizId;
    /** 业务表表名 */
    @Schema(description = "业务表表名")
    private String bizTableName;
    /** 编号生成时间 */
    @Schema(description = "编号生成时间")
    private LocalDateTime generateTime;
    /** 操作用户ID */
    @Schema(description = "操作用户ID")
    private Long operatorId;

}
